/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved.
 */
package com.icinfo.cloud.provider.punish.controller;

import com.icinfo.cloud.provider.punish.dto.AppDocumentCommonSaveDto;
import com.icinfo.cloud.provider.punish.evaluate.dto.EvaluateRecordDto;
import com.icinfo.cloud.provider.punish.service.IEvaluateRecordService;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import com.icinfo.framework.tools.utils.MapUtils;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 描述:  评价模块case_evaluate_record 对应的Controller类.<br>
 *
 * @author framework generator
 * @date 2023年02月07日
 */
@RestController
@RequestMapping("/app/evaluate")
public class EvaluateRecordController extends BaseController {
    /**
     * 日志记录器
     */
    private static final Logger logger = LoggerFactory.getLogger(EvaluateRecordController.class);

    @Autowired
    private IEvaluateRecordService evaluateRecordService;

    /**
     * 【V1.0.0】描述：移动端案件评价保存接口
     *
     * @param evaluateRecordDto
     * @return {@link Result <String>}
     * @author gll
     */
    @PostMapping("/saveEvaluateInfo")
    @ApiOperation(value = "【V1.0.0】描述：移动端案件评价保存接口", httpMethod = "POST")
    public Result saveEvaluateInfo(@RequestBody @Validated EvaluateRecordDto evaluateRecordDto) {
        return evaluateRecordService.saveEvaluateInfo(evaluateRecordDto);
    }
}
